package model

type Task struct {
	BaseModel
	Name        string `gorm:"column:task_name;type:varchar(20) comment '任务名称';not null"`
	Grade       int32  `gorm:"column:task_grade;type:int comment '任务等级';not null"`
	Status      int32  `gorm:"column:task_status;type:int comment '任务状态';not null"`
	CreatorId   uint64 `gorm:"column:creator_id;type:int comment '创建者ID';not null"`
	OwnerId     uint64 `gorm:"column:task_owner_id;type:int comment '任务所属人'"`
	IterationId uint64 `gorm:"column:iteration_id;type:int comment '任务所属迭代ID';not null"`
	ProjectId   uint64 `gorm:"column:project_id;type:int comment '任务所属项目';not null"`
	GroupId     uint64 `gorm:"column:group_id;type:int comment '任务所属团队';not null"`
}
